/*
 * @Author: wangqizhang
 * @Date: 2024-05-02 15:57:23
 * @LastEditors: wangqizhang
 * @LastEditTime: 2024-05-11 10:23:52
 * @FilePath: /suixinji-react/src/type.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
export type NoteProps = {
  title?: string;
  description?: string;
  type?: 'rich-text' | 'markdown';
  status?: 'add' | 'edit';
  detail?: Object;
};
export type NoteAddProps = {
  note_title: string;
  note_description?: string;
  group_id: string;
  note_type: 'rich-text' | 'markdown';
};
import type { TableProps, TableColumnProps } from 'antd';
type Merge<T, U> = T & U;

type FieldProps = {
  field: string;
  initComType: 'input' | 'select' | 'tree-select';
  show: boolean | Function;
};
//表格参数配置
export type XTabelProps = {
  dataSource: {
    url: string;
    method: 'get' | 'post';
    data?: any;
  };
  //字段配置
  fieldsConfig: TableColumnProps<FieldProps>;
};
